```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>远程服务器开发指南 - Cursor IDE 连接 CentOS 实战</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
            line-height: 1.6;
        }
        h1, h2, h3, h4 {
            font-family: 'Noto Serif SC', serif;
            font-weight: 600;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
        }
        .code-block {
            background-color: #1e293b;
            color: #f8fafc;
            border-radius: 0.5rem;
            overflow-x: auto;
        }
        .step-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .visualization-container {
            background: white;
            border-radius: 1rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
        .dropdown-content {
            transition: all 0.3s ease;
            max-height: 0;
            overflow: hidden;
        }
        .dropdown.active .dropdown-content {
            max-height: 1000px;
        }
        .dropdown-toggle::after {
            transition: transform 0.3s ease;
        }
        .dropdown.active .dropdown-toggle::after {
            transform: rotate(180deg);
        }
    </style>
</head>
<body class="antialiased">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20">
        <div class="container mx-auto px-6 max-w-6xl">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="text-4xl md:text-5xl font-bold leading-tight mb-6">远程服务器开发全指南</h1>
                    <p class="text-xl text-blue-100 mb-8">使用 Cursor IDE 高效连接 CentOS 服务器，完成 Java 开发环境配置与项目部署</p>
                    <div class="flex space-x-4">
                        <div class="flex items-center">
                            <i class="fas fa-laptop-code text-blue-200 mr-2 text-xl"></i>
                            <span>云端开发</span>
                        </div>
                        <div class="flex items-center">
                            <i class="fas fa-server text-blue-200 mr-2 text-xl"></i>
                            <span>环境配置</span>
                        </div>
                        <div class="flex items-center">
                            <i class="fas fa-rocket text-blue-200 mr-2 text-xl"></i>
                            <span>自动部署</span>
                        </div>
                    </div>
                </div>
                <div class="md:w-1/2">
                    <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1750232096848-ddd840f5-eb24-4985-baf3-0fc5ceb91261.png" alt="远程开发示意图" class="rounded-xl shadow-2xl border-4 border-white border-opacity-20">
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="container mx-auto px-6 py-16 max-w-6xl">
        <!-- Introduction -->
        <section class="mb-20">
            <div class="bg-white rounded-2xl p-8 shadow-lg">
                <div class="flex items-center mb-6">
                    <div class="bg-blue-100 text-blue-600 p-3 rounded-full mr-4">
                        <i class="fas fa-info-circle text-xl"></i>
                    </div>
                    <h2 class="text-2xl font-bold">为什么选择远程服务器开发？</h2>
                </div>
                <div class="grid md:grid-cols-2 gap-6">
                    <div>
                        <p class="mb-4">在现代软件开发中，远程服务器开发已成为一种高效的工作模式。通过连接远程服务器进行代码编写和环境配置，您可以：</p>
                        <ul class="space-y-2 text-gray-700">
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span>充分利用服务器的强大计算资源</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span>避免复杂的本地环境配置</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span>实现团队协作开发环境一致</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
                                <span>轻松部署和维护项目</span>
                            </li>
                        </ul>
                    </div>
                    <div class="visualization-container p-6">
                        <div class="mermaid">
                            graph TD
                            A[本地机器] -->|SSH连接| B[远程服务器]
                            B --> C[代码编辑]
                            B --> D[环境配置]
                            B --> E[项目构建]
                            B --> F[自动部署]
                            C --> G[持续集成]
                            D --> G
                            E --> G
                            F --> H[生产环境]
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Installation Steps -->
        <section class="mb-20">
            <div class="flex items-center mb-8">
                <div class="bg-purple-100 text-purple-600 p-3 rounded-full mr-4">
                    <i class="fas fa-plug text-xl"></i>
                </div>
                <h2 class="text-2xl font-bold">安装 Remote-SSH 插件</h2>
            </div>
            
            <div class="grid md:grid-cols-3 gap-6">
                <!-- Step 1 -->
                <div class="step-card bg-white rounded-xl shadow-md p-6 transition-all duration-300">
                    <div class="flex items-center mb-4">
                        <div class="bg-purple-500 text-white rounded-full w-8 h-8 flex items-center justify-center mr-3">1</div>
                        <h3 class="font-semibold">打开 Cursor IDE</h3>
                    </div>
                    <p class="text-gray-600 mb-4">启动您的 Cursor IDE 开发环境</p>
                    <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1749393040983-d6246433-f105-470e-9808-c2162d0751d1.png" alt="Cursor IDE界面" class="rounded-lg mb-4 border border-gray-200">
                </div>
                
                <!-- Step 2-4 -->
                <div class="step-card bg-white rounded-xl shadow-md p-6 transition-all duration-300">
                    <div class="flex items-center mb-4">
                        <div class="bg-purple-500 text-white rounded-full w-8 h-8 flex items-center justify-center mr-3">2-4</div>
                        <h3 class="font-semibold">搜索安装插件</h3>
                    </div>
                    <ul class="text-gray-600 mb-4 space-y-2">
                        <li class="flex items-start">
                            <i class="fas fa-search text-purple-500 mt-1 mr-2"></i>
                            <span>点击扩展图标或使用快捷键 <code class="bg-gray-100 px-2 py-1 rounded">Ctrl+Shift+X</code></span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-keyboard text-purple-500 mt-1 mr-2"></i>
                            <span>搜索"Remote-SSH"</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-download text-purple-500 mt-1 mr-2"></i>
                            <span>找到"Remote - SSH"插件</span>
                        </li>
                    </ul>
                </div>
                
                <!-- Step 5-7 -->
                <div class="step-card bg-white rounded-xl shadow-md p-6 transition-all duration-300">
                    <div class="flex items-center mb-4">
                        <div class="bg-purple-500 text-white rounded-full w-8 h-8 flex items-center justify-center mr-3">5-7</div>
                        <h3 class="font-semibold">完成安装</h3>
                    </div>
                    <ul class="text-gray-600 mb-4 space-y-2">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-purple-500 mt-1 mr-2"></i>
                            <span>点击"Install"按钮安装</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-sync-alt text-purple-500 mt-1 mr-2"></i>
                            <span>重启Cursor激活插件</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-external-link-alt text-purple-500 mt-1 mr-2"></i>
                            <span>左侧出现远程资源管理器图标</span>
                        </li>
                    </ul>
                </div>
            </div>
        </section>

        <!-- Connection Methods -->
        <section class="mb-20">
            <div class="flex items-center mb-8">
                <div class="bg-green-100 text-green-600 p-3 rounded-full mr-4">
                    <i class="fas fa-link text-xl"></i>
                </div>
                <h2 class="text-2xl font-bold">连接远程服务器</h2>
            </div>
            
            <div class="grid md:grid-cols-2 gap-8">
                <!-- Password Auth -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="bg-green-500 text-white px-6 py-4">
                        <h3 class="font-semibold text-lg flex items-center">
                            <i class="fas fa-key mr-2"></i>
                            密码认证连接
                        </h3>
                    </div>
                    <div class="p-6">
                        <div class="dropdown mb-6">
                            <div class="dropdown-toggle flex justify-between items-center cursor-pointer py-2">
                                <div class="flex items-center">
                                    <div class="bg-green-100 text-green-600 rounded-full w-6 h-6 flex items-center justify-center mr-3">1</div>
                                    <span>打开连接界面</span>
                                </div>
                                <i class="fas fa-chevron-down text-gray-500"></i>
                            </div>
                            <div class="dropdown-content pl-9">
                                <p class="text-gray-600 mb-3">点击左下角状态栏，选择"Remote-SSH: Connect to Host..."</p>
                                <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1749393795193-1486f81d-dcb7-41b5-a832-59ab8fa988ab.png" alt="连接界面" class="rounded-lg mb-3 border border-gray-200">
                            </div>
                        </div>
                        
                        <div class="dropdown mb-6">
                            <div class="dropdown-toggle flex justify-between items-center cursor-pointer py-2">
                                <div class="flex items-center">
                                    <div class="bg-green-100 text-green-600 rounded-full w-6 h-6 flex items-center justify-center mr-3">2</div>
                                    <span>添加新主机</span>
                                </div>
                                <i class="fas fa-chevron-down text-gray-500"></i>
                            </div>
                            <div class="dropdown-content pl-9">
                                <p class="text-gray-600 mb-3">点击"+ Add New SSH Host..."，输入SSH连接命令：<code class="bg-gray-100 px-2 py-1 rounded">ssh username@server_ip</code></p>
                                <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1749393882042-de4af8b9-6300-4315-9f4a-747b2ae3418c.png" alt="添加主机" class="rounded-lg mb-3 border border-gray-200">
                                <p class="text-gray-600 mb-3">选择配置文件保存位置</p>
                                <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1749393974036-be43b12a-02bb-4280-b866-b7cdff3773c3.png" alt="保存配置" class="rounded-lg mb-3 border border-gray-200">
                            </div>
                        </div>
                        
                        <div class="dropdown">
                            <div class="dropdown-toggle flex justify-between items-center cursor-pointer py-2">
                                <div class="flex items-center">
                                    <div class="bg-green-100 text-green-600 rounded-full w-6 h-6 flex items-center justify-center mr-3">3</div>
                                    <span>完成连接</span>
                                </div>
                                <i class="fas fa-chevron-down text-gray-500"></i>
                            </div>
                            <div class="dropdown-content pl-9">
                                <p class="text-gray-600 mb-3">连接到新添加的主机，输入远程服务器密码</p>
                                <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1749394413836-b5b1d8d3-2b3e-4a5a-9b40-421c95a3bf32.png" alt="连接主机" class="rounded-lg mb-3 border border-gray-200">
                                <p class="text-gray-600">连接成功后，选择要在远程服务器上打开的文件夹</p>
                                <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1749394591040-a46cc368-3bbf-45ee-918b-fa1586f8dc75.png" alt="选择文件夹" class="rounded-lg mt-3 border border-gray-200">
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Key Auth -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="bg-blue-500 text-white px-6 py-4">
                        <h3 class="font-semibold text-lg flex items-center">
                            <i class="fas fa-fingerprint mr-2"></i>
                            公钥认证连接
                        </h3>
                    </div>
                    <div class="p-6">
                        <div class="mb-6">
                            <div class="flex items-center mb-3">
                                <div class="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center mr-3">1</div>
                                <h4 class="font-medium">生成SSH密钥对</h4>
                            </div>
                            <div class="code-block p-4 mb-3">
                                <pre class="text-sm"><code>ssh-keygen -t rsa -b 4096</code></pre>
                            </div>
                            <p class="text-gray-600 text-sm">在本地终端运行以上命令生成密钥对</p>
                        </div>
                        
                        <div class="mb-6">
                            <div class="flex items-center mb-3">
                                <div class="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center mr-3">2</div>
                                <h4 class="font-medium">复制公钥到服务器</h4>
                            </div>
                            <div class="code-block p-4 mb-3">
                                <pre class="text-sm"><code>ssh-copy-id username@server_ip</code></pre>
                            </div>
                            <p class="text-gray-600 text-sm">将公钥复制到远程服务器的<code class="bg-gray-100 px-1 rounded">~/.ssh/authorized_keys</code>文件</p>
                        </div>
                        
                        <div>
                            <div class="flex items-center mb-3">
                                <div class="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center mr-3">3</div>
                                <h4 class="font-medium">连接主机</h4>
                            </div>
                            <p class="text-gray-600 mb-3">在Cursor中添加SSH主机（同密码认证步骤）</p>
                            <p class="text-gray-600">连接时将自动使用密钥认证，无需输入密码</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Alternative Methods -->
            <div class="mt-8 bg-white rounded-xl shadow-md overflow-hidden">
                <div class="bg-yellow-500 text-white px-6 py-4">
                    <h3 class="font-semibold text-lg flex items-center">
                        <i class="fas fa-tools mr-2"></i>
                        替代方法：使用PowerShell或Git复制公钥
                    </h3>
                </div>
                <div class="p-6">
                    <div class="grid md:grid-cols-2 gap-6">
                        <!-- PowerShell -->
                        <div>
                            <h4 class="font-medium mb-3 flex items-center text-yellow-700">
                                <i class="fab fa-windows mr-2"></i>
                                PowerShell方法
                            </h4>
                            <div class="code-block p-4 mb-3">
                                <pre class="text-sm"><code>ssh-keygen -t rsa -b 4096
type $env:USERPROFILE\.ssh\id_rsa.pub</code></pre>
                            </div>
                            <p class="text-gray-600 text-sm">生成密钥对并查看公钥内容，然后通过以下方式添加到远程服务器：</p>
                            <ul class="text-gray-600 text-sm mt-2 space-y-1">
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs text-yellow-500 mt-1 mr-2"></i>
                                    <span>使用远程服务器的Web控制台</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs text-yellow-500 mt-1 mr-2"></i>
                                    <span>使用其他已配置的SSH客户端</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-circle text-xs text-yellow-500 mt-1 mr-2"></i>
                                    <span>通过邮件发送给服务器管理员</span>
                                </li>
                            </ul>
                        </div>
                        
                        <!-- Git Bash -->
                        <div>
                            <h4 class="font-medium mb-3 flex items-center text-yellow-700">
                                <i class="fab fa-git-alt mr-2"></i>
                                Git Bash方法
                            </h4>
                            <div class="code-block p-4 mb-3">
                                <pre class="text-sm"><code>ssh-keygen -t rsa -b 4096
cat ~/.ssh/id_rsa.pub</code></pre>
                            </div>
                            <p class="text-gray-600 text-sm">生成密钥对并查看公钥内容，然后使用：</p>
                            <div class="code-block p-4 mt-2 mb-3">
                                <pre class="text-sm"><code>ssh-copy-id username@server_ip</code></pre>
                            </div>
                            <p class="text-gray-600 text-sm">如果<code class="bg-gray-100 px-1 rounded">ssh-copy-id</code>不可用，可以手动将公钥内容添加到远程服务器的<code class="bg-gray-100 px-1 rounded">~/.ssh/authorized_keys</code>文件中</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Java Environment -->
        <section class="mb-20">
            <div class="flex items-center mb-8">
                <div class="bg-red-100 text-red-600 p-3 rounded-full mr-4">
                    <i class="fab fa-java text-xl"></i>
                </div>
                <h2 class="text-2xl font-bold">Java环境配置</h2>
            </div>
            
            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="bg-red-500 text-white px-6 py-4">
                    <h3 class="font-semibold text-lg">使用Cursor自然语言安装Java环境</h3>
                </div>
                <div class="p-6">
                    <div class="flex flex-col md:flex-row">
                        <div class="md:w-1/2 mb-6 md:mb-0 md:pr-6">
                            <p class="text-gray-700 mb-6">连接远程服务器后，您可以直接使用Cursor的自然语言功能来安装和配置Java环境：</p>
                            <ul class="text-gray-700 space-y-3">
                                <li class="flex items-start">
                                    <i class="fas fa-terminal text-red-500 mt-1 mr-2"></i>
                                    <span>通过自然语言描述您的需求，如"安装Java 17开发环境"</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-magic text-red-500 mt-1 mr-2"></i>
                                    <span>Cursor会自动生成正确的安装命令并执行</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-bug text-red-500 mt-1 mr-2"></i>
                                    <span>如有问题，Cursor会自动尝试修复环境配置</span>
                                </li>
                            </ul>
                        </div>
                        <div class="md:w-1/2">
                            <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1749394783910-9a3e2939-205c-46be-9bc1-304bc99190fa.png" alt="Java环境配置" class="rounded-lg border border-gray-200">
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- HelloWorld & Git -->
        <section class="mb-20">
            <div class="grid md:grid-cols-2 gap-8">
                <!-- HelloWorld -->
                <div>
                    <div class="flex items-center mb-6">
                        <div class="bg-indigo-100 text-indigo-600 p-3 rounded-full mr-4">
                            <i class="fas fa-code text-xl"></i>
                        </div>
                        <h2 class="text-2xl font-bold">编写HelloWorld程序</h2>
                    </div>
                    
                    <div class="bg-white rounded-xl shadow-md overflow-hidden">
                        <div class="bg-indigo-500 text-white px-6 py-4">
                            <h3 class="font-semibold text-lg">您的第一个远程开发项目</h3>
                        </div>
                        <div class="p-6">
                            <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1749394986627-1e48a8f1-cf95-48aa-954b-21ca02da275d.png" alt="HelloWorld程序" class="rounded-lg mb-4 border border-gray-200">
                            <p class="text-gray-700">在远程服务器上创建Java项目，编写并运行经典的HelloWorld程序，验证您的开发环境已正确配置。</p>
                        </div>
                    </div>
                </div>
                
                <!-- Git -->
                <div>
                    <div class="flex items-center mb-6">
                        <div class="bg-teal-100 text-teal-600 p-3 rounded-full mr-4">
                            <i class="fab fa-git-alt text-xl"></i>
                        </div>
                        <h2 class="text-2xl font-bold">Git环境配置</h2>
                    </div>
                    
                    <div class="bg-white rounded-xl shadow-md overflow-hidden">
                        <div class="bg-teal-500 text-white px-6 py-4">
                            <h3 class="font-semibold text-lg">版本控制配置</h3>
                        </div>
                        <div class="p-6">
                            <div class="flex flex-col md:flex-row">
                                <div class="md:w-1/2 mb-4 md:mb-0 md:pr-4">
                                    <p class="text-gray-700 mb-4">使用Cursor的自然语言功能安装Git：</p>
                                    <ul class="text-gray-700 space-y-2">
                                        <li class="flex items-start">
                                            <i class="fas fa-check text-teal-500 mt-1 mr-2"></i>
                                            <span>安装过程一直选择接受</span>
                                        </li>
                                        <li class="flex items-start">
                                            <i class="fas fa-check text-teal-500 mt-1 mr-2"></i>
                                            <span>遇到问题Cursor会自动修复</span>
                                        </li>
                                    </ul>
                                </div>
                                <div class="md:w-1/2">
                                    <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1749395267313-46b9706e-8791-44f2-a01c-79981e18791e.png" alt="Git安装完成" class="rounded-lg border border-gray-200">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Deployment -->
        <section>
            <div class="flex items-center mb-8">
                <div class="bg-orange-100 text-orange-600 p-3 rounded-full mr-4">
                    <i class="fas fa-rocket text-xl"></i>
                </div>
                <h2 class="text-2xl font-bold">实现网页自动部署</h2>
            </div>
            
            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="bg-orange-500 text-white px-6 py-4">
                    <h3 class="font-semibold text-lg">自动化部署流程</h3>
                </div>
                <div class="p-6">
                    <div class="flex flex-col md:flex-row">
                        <div class="md:w-1/2 mb-6 md:mb-0 md:pr-6">
                            <p class="text-gray-700 mb-4">使用Cursor和远程服务器配置自动化部署流程：</p>
                            <ul class="text-gray-700 space-y-3 mb-6">
                                <li class="flex items-start">
                                    <i class="fas fa-cog text-orange-500 mt-1 mr-2"></i>
                                    <span>配置持续集成/持续部署(CI/CD)流程</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-sync-alt text-orange-500 mt-1 mr-2"></i>
                                    <span>设置自动化构建和测试</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-cloud-upload-alt text-orange-500 mt-1 mr-2"></i>
                                    <span>一键部署到生产环境</span>
                                </li>
                            </ul>
                            <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1749397274788-5f53edd1-7911-487a-8308-3bea55cf7c8e.png" alt="开发完成" class="rounded-lg border border-gray-200">
                        </div>
                        <div class="md:w-1/2">
                            <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1749396419314-e440487f-ea07-4b86-be6c-0b623a0e2ffe.png" alt="自动部署" class="rounded-lg mb-4 border border-gray-200">
                            <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1749397356938-4917920a-99e3-45ca-9048-95a74de63136.png" alt="测试网页" class="rounded-lg border border-gray-200">
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <script>
        // 初始化Mermaid
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
        
        // 下拉菜单交互
        document.querySelectorAll('.dropdown-toggle').forEach(toggle => {
            toggle.addEventListener('click', () => {
                const dropdown = toggle.closest('.dropdown');
                dropdown.classList.toggle('active');
            });
        });
        
        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                document.querySelector(this.getAttribute('href')).scrollIntoView({
                    behavior: 'smooth'
                });
            });
        });
    </script>
</body>
</html>
```